﻿
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace Xcj.Mes.Core.NotifyPropertyChanged
{
    public class NotifyPropertyChangedBase : INotifyPropertyChanged, ICloneable
    {
        public event PropertyChangedEventHandler PropertyChanged;
        
        protected virtual void RaisePropertyChanged([CallerMemberName] string propertyName = "")//此处使用特性
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
